/**
 * 
 */
package messaage;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

/**
 * @author mariak
 * 
 */
public class RemoveForumMsg extends Message {

	protected String forumID;
	protected String username;

	public RemoveForumMsg(String _username, String forumID) {
		this.forumID = forumID;
		this.username = _username;
		this.type = "RemoveForumMsg";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see messaage.Message#toString()
	 */
	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";

		return xml;
	}

	/**
	 * @return the forumID
	 */
	public int getForumID() {
		return Integer.parseInt(forumID);
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

}
